<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>学生行程管理系统 管理员后台</title>
    <link rel="stylesheet" type="text/css" th:href="@{/easyui/css/default.css}" />
    <link rel="stylesheet" type="text/css" th:href="@{/easyui/themes/default/easyui.css}" />
    <link rel="stylesheet" type="text/css" th:href="@{/easyui/themes/icon.css}" />
    <script type="text/javascript" th:src="@{/easyui/jquery.min.js}"></script>
    <script type="text/javascript" th:src="@{/easyui/jquery.easyui.min.js}"></script>
	<script type="text/javascript" th:src='@{/easyui/js/outlook2.js}'> </script>
    <script type="text/javascript" th:inline="javascript">
        /*<![CDATA[*/
         var usertype = [[${session.usertype}]];
         if(usertype == "1" || usertype == "3"){
             var _menus = {"menus":[
                     {"menuid":"2","icon":"","menuname":"学生信息管理",
                         "menus":[
                             {"menuid":"21","menuname":"所有学生","icon":"icon-user-student","url":/*[[@{/student/student_list}]]*/},
                         ]
                     },
                     {"menuid":"4","icon":"","menuname":"位置信息管理",
                         "menus":[
                             {"menuid":"42","menuname":"位置列表","icon":"icon-house","url":/*[[@{/clazz/clazz_list}]]*/}
                         ]
                     },
                     {"menuid":"3","icon":"","menuname":"管理员信息管理",
                         "menus":[
                             {"menuid":"31","menuname":"管理列表","icon":"icon-user-teacher","url":/*[[@{/teacher/teacher_list}]]*/},
                         ]
                     },


                     {"menuid":"8","icon":"","menuname":"行程信息管理",
                         "menus":[
                             {"menuid":"81","menuname":"行程列表","icon":"icon-book-open","url":/*[[@{/attendance/attendance_list}]]*/},
                         ]
                     },


                     {"menuid":"5","icon":"","menuname":"系统管理",
                         "menus":[
                             {"menuid":"51","menuname":"修改密码","icon":"icon-set","url":/*[[@{/system/personalView}]]*/},
                         ]
                     }
                 ]};
         }
         if(usertype == "2"){
             var _menus = {"menus":[
                     {"menuid":"2","icon":"","menuname":"学生信息管理",
                         "menus":[
                             {"menuid":"21","menuname":"学生列表","icon":"icon-user-student","url":/*[[@{/student/student_one}]]*/},
                         ]
                     },

                     {"menuid":"8","icon":"","menuname":"行程信息管理",
                         "menus":[
                             {"menuid":"81","menuname":"行程列表","icon":"icon-book-open","url":/*[[@{/attendance/attendance_list}]]*/},
                         ]
                     },

                     {"menuid":"5","icon":"","menuname":"系统管理",
                         "menus":[
                             {"menuid":"51","menuname":"修改密码","icon":"icon-set","url":/*[[@{/system/personalView}]]*/},
                         ]
                     }
                 ]};
         }


        /*]]>*/
    </script>

</head>
<body class="easyui-layout" style="overflow-y: hidden"  scroll="no">

    <div region="north" split="true" border="false" style="overflow: hidden; height: 30px;
        background: url(images/layout-browser-hd-bg.gif) #7f99be repeat-x center 50%;
        line-height: 20px;color: #fff; font-family: Verdana, 微软雅黑,黑体">
        <span style="float:right; padding-right:20px;" class="head">
            <span style="color:red; font-weight:bold;" th:if="${session.usertype == '1'}" th:text="${session.admin.username}">&nbsp</span>
            <span style="color:red; font-weight:bold;" th:if="${session.usertype == '2'}" th:text="${session.student.username}">&nbsp</span>
            <span style="color:red; font-weight:bold;" th:if="${session.usertype == '3'}" th:text="${session.teacher.username}">&nbsp</span>
            您好&nbsp;&nbsp;&nbsp;
            <a th:href="@{/system/logout}" id="loginOut">安全退出</a>
        </span>
        <span style="padding-left:10px; font-size: 16px; ">学生行程管理系统</span>
    </div>
    <div region="south" split="true" style="height: 30px; background: #D2E0F2; ">
        <div class="footer">1710031565@qq.com</div>
    </div>
    <div region="west" hide="true" split="true" title="导航菜单" style="width:180px;" id="west">
	<div id="nav" class="easyui-accordion" fit="true" border="false">
		<!--  导航内容 -->
	</div>
	
    </div>
    <div id="mainPanle" region="center" style="background: #eee; overflow-y:hidden">
        <div id="tabs" class="easyui-tabs"  fit="true" border="false" th:include="system/welcome :: welcome">

		</div>
    </div>

	
</body>
</html>